| PersonAddress |
| EntityType | Independent |
| Logical Entity Name | PersonAddress |
| Default Table Name | SyPersonAddress |
| Logical Only | NO |
| Definition | |
| Note |
| PersonAddress Attributes |
| Attribute/Logical Rolename | Domain | Datatype | NULL | Definition |
Id |
INTEGER | NO | ||
PersonId |
INTEGER | NO | ||
AddressTypeId |
INTEGER | YES | ||
| CVueSourceTypeIdentifier | INTEGER | YES | 1 - StaffAddress; 2 - StaffWorkAddress ; 3 - SyAddress ; 4 - SyStudentAddress ; 5 - PlEmployerContact ; 6 - SyOrganizationContact |
|
| StreetAddress | NVARCHAR(300) | YES | ||
| City | NVARCHAR(30) | YES | ||
| State | NVARCHAR(2) | YES | ||
| PostalCode | NVARCHAR(20) | YES | ||
CountryId |
INTEGER | YES | ||
CountyId |
INTEGER | YES | ||
| YearsAtAddress | NUMERIC(9, 1) | YES | ||
| EffectiveBeginDate | DATETIME | YES | ||
| EffectiveEndDate | DATETIME | YES | ||
| IsValid | BIT | YES | ||
| IsSeasonal | BIT | YES | ||
| Note | NVARCHAR(4000) | YES | ||
| IsPrimary | BIT | NO | ||
| IsActive | BIT | NO | ||
| LastModifiedUserId | INTEGER | NO | ||
| CreatedDateTime | DATETIME | NO | ||
| LastModifiedDateTime | DATETIME | NO | ||
| RowVersion | TIMESTAMP/DATE | NO | ||
| RecordId | INTEGER | YES |
| PersonAddress Keys |
| Key Name | Key Type | Keys |
| Nk_SyPersonAddress_SyPersonId_CVueSourceTypeId_IsValid | Inversion Entry | PersonId, CVueSourceTypeIdentifier, IsValid |
| PK_SyPersonAddress | PrimaryKey | Id |
| Nk_SyPersonAddress_RecordId_CVueSourceTypeId | Inversion Entry | RecordId, CVueSourceTypeIdentifier |
| PersonAddress Relationships |
| Parent Relationships: |
| Entity Name | Type | Cardinality | Business Name | VerbPhrase | InversePhrase | Foreign Keys | Is Supertype |
| AddressType | Non-Identifying | Zero or One to Zero or More | AddressTypeId | NO | |||
| Country | Non-Identifying | Zero or One to Zero or More | CountryId | NO | |||
| County | Non-Identifying | Zero or One to Zero or More | CountyId | NO | |||
| Person | Non-Identifying | One To Zero or More | PersonId | NO |
| Child Relationships: |
| Entity Name | Type | Cardinality | Business Name | VerbPhrase | InversePhrase | Foreign Keys | Is Subtype |
| PersonAddress Check Constraints |
| Check Constraint Name | CheckConstraint |